<?php

namespace Database\Factories\ParkingLot;

use App\Models\ParkingLot\ParkEnterLog;
use Illuminate\Database\Eloquent\Factories\Factory;

class ParkEnterLogFactory extends Factory
{
    protected $model = ParkEnterLog::class;
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'car_no' => $this->faker->randomElement(['京','津','冀','晋','蒙','辽','吉','黑','沪','苏','浙','皖','鲁','豫','粤']) . $this->faker->randomElement(['A','B', 'C', 'D', 'E', 'F', 'G', 'H', 'N']) . $this->faker->randomElement(['A','B', 'C', 'D', 'E', 'F', 'G', 'H', 'N']) . mt_rand(1000, 9999),
            'car_type' => $this->faker->randomElement(['临时车','月租车']),
            'car_no_type' => $this->faker->randomElement(['蓝牌车','黄牌车']),
            'enter_at' => $this->faker->dateTimeBetween('-1 years', 'now'),
            'enter_is_open' => 1,
            'enter_lane_name' => '入口车道',
            'enter_lane_id' => '994a7c1b-1cce-4e72-bb5a-63e9f5358c72',
            'parking_lot_id' => $this->faker->randomElement(['9949de13-e92d-4b40-a292-1cc7b81627e5','9949e7ee-c97d-4134-ad5f-72987b830494','9949e812-0eee-4c74-ade9-0f8686e7c140', '999ebf79-5d15-491f-be02-329771b8ec17', '999ec832-1992-442a-9d98-43af59941af2', '99d86f06-c530-4027-afbb-05f7c697adff', '99d86952-77b6-4937-b69f-31ecfd477049']),
        ];
    }

    /**
     * Indicate that the model's email address should be unverified.
     *
     * @return \Illuminate\Database\Eloquent\Factories\Factory
     */
    public function unverified()
    {
        return $this->state(function (array $attributes) {
            return [
//                'email_verified_at' => null,
            ];
        });
    }
}
